package com.frog.chinanews.activity;


import com.frog.chinanews.R;
import com.frog.rss.domain.RSSItem;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.webkit.WebView;
import android.widget.TextView;

public class ContentActivity extends Activity {
	WebView contentView;
	TextView contentTitle;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.content);
		contentView = (WebView) findViewById(R.id.contentView);
		contentTitle = (TextView) findViewById(R.id.contentTitle);
		RSSItem rssItem = (RSSItem) getIntent().getSerializableExtra("rssItem");
		contentTitle.setText(rssItem.getTitle());
		String s = rssItem.getDescription();
		Log.d("y", s);

		contentView.loadDataWithBaseURL(null, s, "text/html", "utf-8", null);
		// String summary =
		// "<html><body>You scored <b>192 points.</body></html>";
		// contentView.loadData(summary, "text/html", "utf-8");

	}
}
